<extend name="Public:base"/>

<block name="main">
<style>.pay_desc a {color:#FB0000;}</style>

<div id="yzh-content" class="col-xs-12">
    <div class="main-title">
        <h2>支付管理</h2>
    </div>


    <form id="myform" name="myform" action="{:U('payment/listorder')}" method="post">
        <table class="table">
            <thead>
              <tr>
                <th>{:L('listorder')}</th>
                <th>{:L('name')}</th>
                <th width="600">{:L('description')}</th>
                <th>{:L('version')}</th>
                <th>{:L('author')}</th>
                <th>{:L('manage')}</th>
              </tr>
            </thead>
            <tbody>
              <volist name="list" id="vo" key="k">
              <tr>
                <td>{if isset($vo[id])}<input name='listorders[{$vo.id}]' type='text' size='3' value='{$vo.listorder}' class='input-text-c'>{else}0{/if}</td>
                <td>{$vo['pay_name']}</td>
                <td class="pay_desc">{$vo['pay_desc']}</td>
                <td>{$vo['version']}</td>
                <td>{$vo['author']}</td>
                <td>
                {if $vo['id']}
                {if $vo['status']}<a href="{:U('payment/status',array(id=>$vo['id'],status=>0))}"><font color="red">{:L('disable')}</font></a> {else}  <a href="{:U('payment/status',array(id=>$vo['id'],status=>1))}"><font color="green">{:L('enable')}</font></a> {/if} |
                <a href="javascript:openwin('install','{:U('payment/edit',array(id=>$vo['id']))}','{:L('install')}',600,440)">{:L('config')}</a> |
                <a href="javascript:confirm_delete('{:U('payment/delete',array(id=>$vo['id']))}')">{:L('uninstall')}</a>
                {else}
                <a href="javascript:openwin('install','{:U('payment/add',array(code=>$vo['pay_code']))}','{:L('install')}',600,440)">{:L('install')}</a>
                {/if}
              </td>
            </tr>

            </volist>
          </tbody>
        </table>

        <div class="table-actions">
            <input  type="button" class="btn btn-primary btn-sm" value="排序" onclick="myform.action='{:U($module_name.'/listorder')}';$('#myform').submit();" />
        </div>
    </form>
</div>
</block>